package com.luhui.commons.beans;

import java.beans.IntrospectionException;

/**
 * Created with LXD
 *
 * @author:Luhui
 * @qq:729913162
 * @Date:2018-08-06
 * @Time:14:17
 */
public class BeanUtils {

    public static void setProperty(Object object,String fieldName,Object fieldValue) throws IntrospectionException {
        BeanUtilsBean.getInstance().setFieldValue(object,fieldName,fieldValue,true);
    }

    public static Object getProperty(Object object,String fieldName) throws IntrospectionException {
        return BeanUtilsBean.getInstance().getFieldValue(object,fieldName);
    }


}
